package com.meitianhui.convenitenbuy.module.mine.contract;

import android.content.Intent;

import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;
import com.meitianhui.convenitenbuy.module.mine.model.ConsumerInfo;

/**
 * Created by amy on 2017/11/3.
 */

public interface UserInfoContract {


    interface View extends BaseView<UserInfoContract.Presenter> {

        void dismissDialog();

        void setUserPhoto(String doc_path, String doc_id);

        void upDateUserInfo();

        void getLatestConsumerInfoSucc(ConsumerInfo data);


    }

    interface Presenter extends BasePresenter {

        void openCamera();

        void openAlbum();

        void dealWithPicture(int requestCode, int resultCode, Intent data);

        void upLoadUserInfo(String nickName, String userNickName, String userSex, String userBirthday, String userName);

        String stringFilter(String trim);

        void upDateLocalConsumer(String filterNewName, int clickUserNickname);

        void getLatestConsumerInfo();
    }
}
